//
//  Extension+UIImageView.swift
//  三期微博1
//
//  Created by TownFish on 16/7/22.
//  Copyright © 2016年 TownFish. All rights reserved.
//

import UIKit
import SDWebImage

extension UIImageView {
    //实例化imageView快捷方式
    convenience init(imgName: String) {
        self.init(image: UIImage(named: imgName))
    }
    
    func demo() {
//        img.sd_setImageWithURL(NSURL!, placeholderImage: UIImage!)
    }
    
    func sh_setImage(urlString: String?,placehoderImageName: String){
        self.sd_setImageWithURL(NSURL(string: urlString ?? ""), placeholderImage: UIImage(named: placehoderImageName))
    }
}
